<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        #canvas {
            display: block;
            margin: 200px auto;
            border: 1px solid #000;
            box-shadow: 3px 3px #ccc;
        }
    </style>
</head>

<body>
    <canvas id="canvas"></canvas>

    <script>
        const canvas = document.getElementById("canvas");
        canvas.width = 600
        canvas.height = 700
        const ctx = canvas.getContext("2d");
        <!-- ctx.fillStyle('red')  -->
        ctx.fillRect(10, 10, 150, 100)
        ctx.draw()
       // ctx.fillRect(50, 50, 150, 100)
    </script>
</body>

</html>